Server power consumption management method and device

ABSTRACT

A power consumption management method and a power consumption management device are provided. When a power module of a power supply for a server is faulty, a power consumption management device receives fault information sent by the power supply, and reduces first power consumption, calculated when the power module works normally, of the server by a first value to second power consumption of the server based on the fault information. The first value is not less than a reduced value, calculated when the power module is faulty, of power consumption of the server. In addition, the power consumption management device adjusts the second power consumption of the server based on a power consumption capping value of the server. According to the application, a breakdown of the server is avoided, and the power utilization after the power module is faulty is further improved.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/CN2018/105194, filed on Sep. 12, 2018, which claims priority toChinese Patent Application No. 201710826652.4, filed on Sep. 14, 2017.The disclosures of the aforementioned applications are herebyincorporated by reference in their entireties.

TECHNICAL FIELD

Embodiments of the present application relates to the field ofinformation technologies, and in particular, to a server powerconsumption management method and a device.

BACKGROUND

A server is usually equipped with a power supply including a pluralityof power modules. A power consumption capping technology can ensure thatpower consumption of the server is maintained in a stable level when theserver is running, to improve power utilization. Users set a cappingvalue of power consumption of the entire server, and the powerconsumption of the entire server is periodically checked when the serveris running. If the power consumption reaches the capping value,measures, such as reducing a frequency of a central processing unit(CPU) of the server, are used to limit the power consumption of theserver within an error range of 5% of target power consumption.

However, when a power module of the server is faulty, because a time forcompleting a power consumption capping operation is far longer than aholding time that can be used for maintaining normal work of the serverwhen the power module is faulty, total power consumption that can beprovided by the power supply is rapidly reduced to below current runningpower consumption of the server, leading to a breakdown of the server.

SUMMARY

According to an aspect, an embodiment provides a server powerconsumption management method. A power supply supplies power to aserver, the power supply includes a power module, and a powerconsumption management device communicates with the power supply and theserver. The method includes: receiving, by the power consumptionmanagement device, fault information of the power module, and reducingfirst power consumption of the server by a first value to obtain secondpower consumption of the server, where the first power consumption is apower consumption value of the server calculated when the power moduleworks normally, and the first value is not less than a reduced value,calculated when the power module is faulty, of power consumption of theserver; and adjusting, by the power consumption management device, thesecond power consumption of the server based on a power consumptioncapping value of the server, where the power consumption capping valueof the server is a difference between the first power consumption andthe reduced value of the power consumption of the server.

A specific implementation of reducing the power consumption of theserver by the first value includes but is not limited to pulling downProchot and Memhot pins of a CPU, turning off a component such as aclock, temporarily powering off a fan, triggering a low load or ahibernate mode of a component, or the like. After the power module isfaulty, the power consumption management device reduces the powerconsumption of the server by the first value within a holding time tobelow maximum power consumption that can be provided by the power supplyafter the power module is faulty. This ensures that the server does notbreak down. A power consumption capping technology can precisely adjustthe power consumption of the server. The power consumption managementdevice periodically detects the power consumption of the server, andcalculates a difference between the power consumption of the server andthe power consumption capping value of the server. When the differenceis greater than a preset error value, a power control device adjusts thepower consumption of the server, continues to detect the powerconsumption, and calculates the difference until the difference fallswithin a preset error range. A specific implementation of the powerconsumption adjustment is mainly adjustment of a running state of ahigh-power component, including but not limited to CPU frequency andvoltage adjustment, CPU core enabling and disabling, a CPU P/T-state, amemory frequency, a T state of a memory, reading, writing, andhibernation states of a hard disk, an L0/L1 pin state of a high-speedperipheral component interconnect express (PCIe) network adapter, aworking status of a graphics processing unit (GPU), a fan speed, andother manners in which precise control on the power consumption of theserver can be implemented. This method avoids a breakdown of the server,and further improves power utilization after the power module is faulty.

With reference to a first aspect, in a first possible implementation ofthe first aspect, the server includes a plurality of nodes. Thereducing, by the power consumption management device, first powerconsumption of the server by a first value to obtain second powerconsumption of the server specifically includes: obtaining, by the powerconsumption management device, a reduced value of power consumption ofeach node; and reducing, by the power consumption management device, thepower consumption of each node by a second value based on the reducedvalue of the power consumption of each node, where the sum of the secondvalues of the plurality of nodes is equal to the first value. Theadjusting, by the power consumption management device, the second powerconsumption of the server based on a power consumption capping value ofthe server specifically includes: obtaining, by the power consumptionmanagement device, a power consumption capping value of each node, wherethe sum of the power consumption capping values of the plurality ofnodes is the power consumption capping value of the server; andadjusting, by the power consumption management device, the powerconsumption of each node based on the power consumption capping value ofeach node.

According to a second aspect, an embodiment provides a power consumptionmanagement device. The power consumption management device communicateswith a power supply and a server, the power supply supplies power to theserver, and the power supply includes a power module; and the powerconsumption management device includes a power consumption reductionunit and a power consumption capping unit. The power consumptionreduction unit is configured to perform the following operations:receiving fault information of the power module, and reducing firstpower consumption of the server by a first value to obtain second powerconsumption of the server, where the first power consumption is a powerconsumption value of the server calculated when the power module worksnormally, and the first value is not less than a reduced value,calculated when the power module is faulty, of power consumption of theserver. The power consumption capping unit is configured to perform thefollowing operation: adjusting the second power consumption of theserver based on a power consumption capping value of the server, wherethe power consumption capping value of the server is a differencebetween the first power consumption and the reduced value of the powerconsumption of the server.

With reference to the second aspect, in a first possible implementationof the second aspect, the power consumption reduction unit is furtherconfigured to send the fault information to the power consumptioncapping unit; and that the power consumption capping unit is configuredto receive the fault information of the power module specificallyincludes: receiving the fault information from the power consumptionreduction unit.

With reference to the second aspect or the first implementation of thesecond aspect, in a second possible implementation of the second aspect,the server includes a plurality of nodes, the power consumptionreduction unit includes a plurality of power consumption reductionsubunits, the power consumption capping unit includes a plurality ofpower consumption capping subunits, and each power consumption reductionsubunit and a power consumption capping subunit communicate with one ofthe nodes. Each power consumption reduction subunit is configured toperform the following operations: receiving the fault information,obtaining a reduced value of power consumption of each node, andreducing the power consumption of each node by a second value, where thesum of the second values of the plurality of nodes is equal to the firstvalue. Each power consumption capping subunit is configured to performthe following operations: obtaining a power consumption capping value ofeach node based on the fault information, where the sum of the powerconsumption capping values of the plurality of nodes is the powerconsumption capping value of the server; and adjusting the powerconsumption of each node based on the power consumption capping value ofeach node.

With reference to the second aspect, in a third possible implementationof the second aspect, the power consumption reduction unit furtherincludes a power consumption reduction management unit, and the powerconsumption capping unit further includes a power consumption cappingmanagement unit. The power consumption reduction management unit isconfigured to perform the following operations: receiving the faultinformation, and forwarding the fault information to each powerconsumption reduction subunit and the power consumption cappingmanagement unit; and that each power consumption reduction subunitreceives the fault information of the power module specificallyincludes: receiving the fault information forwarded by the powerconsumption reduction management unit. The power consumption cappingmanagement unit is configured to perform the following operations:receiving the fault information, and forwarding the fault information toeach power consumption capping subunit. That each power consumptioncapping subunit receives the fault information of the power modulespecifically includes: receiving the fault information forwarded by thepower consumption reduction management unit.

According to a third aspect, an embodiment provides a power consumptionmanagement device. The power consumption management device communicateswith a power supply and a server, the power supply supplies power to theserver, and the power supply includes a power module; and the powerconsumption management device includes an interface and a processor,where the interface communicates with the processor, and the interfaceis configured to receive fault information of the power module. Theprocessor is configured to perform the following operations: reducing,based on the fault information, first power consumption of the server bya first value to obtain second power consumption of the server, wherethe first power consumption is a power consumption value of the servercalculated when the power module works normally, and the first value isnot less than a reduced value, calculated when the power module isfaulty, of power consumption of the server; and adjusting the secondpower consumption of the server based on the fault information and apower consumption capping value of the server, where the powerconsumption capping value of the server is a difference between thefirst power consumption and the reduced value of the power consumptionof the server.

With reference to the third aspect, in a first possible implementationof the third aspect, the server includes a plurality of nodes. That theprocessor is configured to reduce first power consumption of a server bya first value to obtain second power consumption of the serverspecifically includes: obtaining a reduced value of power consumption ofeach node; and reducing the power consumption of each node by a secondvalue based on the reduced value of the power consumption of each node,where the sum of the second values of the plurality of nodes is equal tothe first value. That the power consumption management device adjuststhe second power consumption of the server based on the powerconsumption capping value of the server specifically includes: obtaininga power consumption capping value of each node, where the sum of thepower consumption capping values of the plurality of nodes is the powerconsumption capping value of the server; and adjusting the powerconsumption of each node based on the power consumption capping value ofeach node.

According to a fourth aspect, an embodiment provides a power consumptionmanagement device. A non-volatile readable storage medium includes afirst computer instruction used to receive fault information of a powermodule, and reduce first power consumption of a server by a first valueto obtain second power consumption of the server, where the server ispowered by a power supply, the power supply includes the power module,and the power consumption management device communicates with the powersupply and the server; and the first power consumption is a powerconsumption value of the server calculated when the power module worksnormally, and the first value is not less than a reduced value,calculated when the power module is faulty, of power consumption of theserver. The non-volatile readable storage medium further includes asecond instruction used to adjust the second power consumption of theserver based on a power consumption capping value of the server, wherethe power consumption capping value of the server is a differencebetween the first power consumption and the reduced value of the powerconsumption of the server.

With reference to the fourth aspect, in a first possible implementationof the fourth aspect, the server includes a plurality of nodes. That afirst instruction is used to reduce first power consumption of a serverby a first value to obtain second power consumption of the serverspecifically includes: obtaining a reduced value of power consumption ofeach node; and reducing the power consumption of each node by a secondvalue based on the reduced value of the power consumption of each node,where the sum of the second values of the plurality of nodes is equal tothe first value. That a second instruction is used to adjust the secondpower consumption of the server based on a power consumption cappingvalue of the server specifically includes: obtaining a power consumptioncapping value of each node, where the sum of the power consumptioncapping values of the plurality of nodes is the power consumptioncapping value of the server; and adjusting the power consumption of eachnode based on the power consumption capping value of each node.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1a is a schematic diagram of a single-node server equipped with apower supply;

FIG. 1b is a schematic diagram of a multi-node server equipped with apower supply;

FIG. 2 is a schematic diagram of a power supply management module and apower supply in a server;

FIG. 3 is a schematic diagram of performing steps by a power consumptionmanagement device in a single-node server;

FIG. 4 is a schematic structural diagram of a power consumptionmanagement device in a single-node server;

FIG. 5 is a schematic diagram of an architecture of a power consumptionmanagement device, a server, and a power supply in a multi-node server;

FIG. 6 is a schematic diagram of performing steps by a power consumptionmanagement device in a multi-node server; and

FIG. 7 is a schematic diagram of a power consumption management device.

DESCRIPTION OF EMBODIMENTS

In FIG. 1a , a server 100 is connected to a power supply 110, and thepower supply 110 includes a power module 111 a, a power module 111 b, .. . , and a power module 111 n. In FIG. 1b , a server 100 is a serverincluding a plurality of nodes, and the server 100 includes a node 101a, a node 101 b, . . . , and a node 101 n that are connected to eachother, and a power supply 110 includes a power module 111 a, a powermodule 111 b, . . . , and a power module 111 n. A connection 102represents an example connection relationship between the nodes 101.

An embodiment provides a power consumption management device 200 of aserver 100. FIG. 2 is a schematic diagram of a relationship between thepower consumption management device 200 and a power supply 110 of theserver 100. When the server 100 is a single-node server, the powerconsumption management device 200 in the server 100 communicates witheach power module 111, and receives fault information of each powermodule 111. In this embodiment, the fault information may be aninterrupt signal or a signal in another form, and this is not limited inthis embodiment. The power consumption management device 200 stores areduced value, calculated when a power module 111 is faulty, of powerconsumption of the server 100. As shown in FIG. 3, specific stepsperformed by the power consumption management device 200 are as follows.

301. Receive the fault information of the power module 111.

302. Reduce first power consumption of the server 100 by a first valueto obtain second power consumption of the server 100, where the firstpower consumption is a power consumption value of the server 100 whenthe power module 111 works normally, and the first value is not lessthan the reduced value of the power consumption of the server 100 whenthe power module 111 is faulty.

A specific implementation of reducing the power consumption of theserver 100 by the first value includes but is not limited to pullingdown Prochot and Memhot pins of a CPU, turning off a component such as aclock, temporarily powering off a fan, triggering a low load or ahibernate mode of a component, or the like. In step 301, after the powermodule 111 is faulty, the power consumption management device reducesthe power consumption of the server 100 by the first value within aholding time to below maximum power consumption that can be provided bythe power supply 110 after the power module 111 is faulty. This ensuresthat the server 100 does not break down.

303. Adjust the second power consumption of the server 100 based on apower consumption capping value of the server 100, where the powerconsumption capping value of the server 100 is a difference between thefirst power consumption and the reduced value of the power consumptionof the server 100 when the power module 111 is faulty.

In step 303, a specific implementation of adjusting the powerconsumption of the server 100 is mainly adjusting a running state of ahigh-power component, including but not limited to CPU frequency andvoltage adjustment, CPU core enabling and disabling, a CPU P/T-state, amemory frequency, a T state of a memory, reading, writing, andhibernation states of a hard disk, an L0/L1 pin state of a high-speedperipheral component interconnect express (PCIe) network adapter, aworking status of a graphics processing unit (GPU), a fan speed, andother manners in which the power consumption of the server 100 can becontrolled precisely.

A power consumption capping technology is a specific implementation ofstep 303. The power consumption management device 200 periodicallydetects the power consumption of the server 100, and calculates adifference between the power consumption of the server 100 and the powerconsumption capping value of the server 100. When the difference isgreater than a preset error value, a power control device 200 adjuststhe power consumption of the server 100, continues to detect the powerconsumption, and calculates the difference until the difference fallswithin a preset error range. The power consumption capping technologycan precisely adjust the power consumption of the server 100, so thatthe power consumption of the server 100 approximates to, based on apreset error, the maximum power consumption that can be provided by thepower supply 110 when the power module 111 is faulty.

Generally, in step 302, methods used for reducing the power consumptionof the server 100 cannot precisely reduce the power consumption of theserver 100 to the maximum power consumption that can be provided by thepower supply 110 after the power module is faulty. Therefore, the powerconsumption management device 200 needs to perform step 303, to adjustthe power consumption of the server 200 to approximate to the maximumpower consumption that can be provided by the power supply 110 after thepower module is faulty. This improves utilization of the power module111 that normally works. Step 302 and step 303 are combined. This avoidsa breakdown of the server 100, and further improves the utilization ofthe power supply 110 after the power module 111 is faulty.

As shown in FIG. 4, a structure of the power consumption managementdevice 200 of the single-node server in FIG. 2 includes a powerconsumption reduction unit 210 and a power consumption capping unit 220.The power consumption reduction unit 210 is configured to: receive thefault information of the power module 111, perform step 301, and forwardthe fault information to the power consumption capping unit 220. Thepower consumption capping unit 220 is configured to receive the faultinformation forwarded by the power consumption reduction unit 210, andperform step 302 to implement power consumption and power supplymanagement of the server 100.

Specifically, the power consumption reduction unit 210 is implemented bya complex programmable logic device (CPLD), a baseboard managementcontroller (BMC), and another power supply control unit that can reducethe power consumption of the server within a holding time after thepower module 111 is faulty. This is not limited in this embodiment.

The power consumption capping unit 220 is implemented by using the BMC,Intel Node Manager, and a combination of the BMC and a basicinput/output system (BIOS).

In addition, the power consumption reduction unit 210 and the powerconsumption capping unit 220 may be integrated into a chip or anotherhardware device, or may be independent electronic components coupled inan electrical, mechanical, or other form, or two or more units areintegrated into one unit. This is not limited in this embodiment.

The server 100 in this embodiment may be a multi-node server. FIG. 5shows a connection relationship between a power consumption managementdevice 500, a multi-node server 100, and a power supply 110. Same asthat in FIG. 1b , the server 100 includes the node 101 a, the node 101b, . . . , and the node 101 n. The power supply 110 supplies power tothe server 100, and the connection 102 is omitted in FIG. 5. The powerconsumption management device 500 includes a power consumption reductionunit 510 and a power consumption capping unit 520. The power consumptionreduction unit 510 includes a power consumption reduction managementunit 511, a power consumption reduction subunit 512 a, a powerconsumption reduction subunit 512 b, . . . , and a power consumptionreduction subunit 512 n. The power consumption capping unit 520 includesa power consumption capping management unit 521, a power consumptioncapping subunit 522 a, a power consumption capping subunit 522 b, . . ., and a power consumption capping subunit 522 n. The power consumptionreduction subunit 512 b, . . . , and the power consumption reductionsubunit 512 n respectively communicate with the node 101 a, the node 101b, . . . , and the node 101 n. The power consumption capping subunit 522a, the power consumption capping subunit 522 b, . . . , and the powerconsumption capping subunit 522 n also respectively communicate with thenode 101 a, the node 101 b, . . . , and the node 101. The powerconsumption capping management unit 521 manages all power consumptioncapping subunits 522, and the power consumption reduction managementunit 511 manages all power consumption reduction subunits 522. Inaddition, the power consumption reduction management unit 511communicates with the power supply 110. The power consumption reductionmanagement unit 511 and the power consumption capping management unit521 store a reduced value of the power consumption of the server 100when a power module 111 is faulty.

In the architecture shown in FIG. 5, specific steps performed by thepower consumption management device 500 are as follows.

601. Receive the fault information of the power module 111.

The fault information may be an interrupt signal or a signal in anotherform, and this is not limited in this embodiment.

602. Obtain reduced values of power consumption of the node 101 a, thenode 101 b, . . . , and the node 101 n.

603. Reduce power consumption of each node by a second value based onreduced values of the power consumption of the node 101 a, the node 101b, . . . , and the node 101 n, so that within a holding time of thefaulty power module 111, total power consumption of all nodes, namely,power consumption of the server 100, is reduced to below maximum powerconsumption that can be provided by the power supply 110 after the powermodule 111 is faulty. This ensures that the server 100 does not breakdown.

A specific implementation of reducing the power consumption of theserver 100 includes but is not limited to pulling down Prochot andMemhot pins of a CPU, turning off a component such as a clock,temporarily powering off a fan, triggering a low load or a hibernatemode of a component, or the like. As described above, the implementationof rapidly reducing the power consumption cannot precisely control thepower consumption of each node. As a result, low utilization of thepower supply 110 is caused. In this case, the power consumptionmanagement device 500 performs step 604.

604. The power consumption management device 500 obtains powerconsumption capping values of each node based on the fault information,where the sum of the power consumption capping values of the pluralityof nodes is a power consumption capping value of the server 100.

605. Adjust the power consumption of each node based on the powerconsumption capping values of each node, so that the power consumptionof the server 100 approximates to, based on a preset error, the maximumpower consumption that can be provided by the power supply 110 when thepower module 111 is faulty.

An initial capping value for a power consumption capping operation oneach node is a difference between a power consumption value of the nodewhen the power module 111 works normally, and a reduced value of thepower consumption of the node when the power module 111 is faulty.

A specific implementation of step 605 is mainly adjusting a runningstate of a high-power component, including but not limited to CPUfrequency and voltage adjustment, CPU core enabling and disabling, a CPUP/T-state, a memory frequency, a T state of a memory, reading, writing,and hibernation states of a hard disk, an L0/L1 pin state of ahigh-speed peripheral component interconnect express (PCIe) networkadapter, a working status of a graphics processing unit (GPU), a fanspeed, and other manners in which the power consumption of the server100 can be controlled precisely.

The power consumption capping technology in step 605 in a specificimplementation includes the following steps: A power control device 200periodically detects the power consumption of the server 100, andcalculates a difference between the power consumption of the server 100and the power consumption capping value of the server 100. When thedifference is greater than a preset error value, the power controldevice 200 adjusts the power consumption of the server 100, continues todetect the power consumption, and calculates the difference until thedifference falls within a preset error range. The power consumptioncapping technology can precisely adjust the power consumption of theserver 100, so that the power consumption of the server 100 approximatesto, based on a preset error, the maximum power consumption that can beprovided by the power supply 110 when the power module 111 is faulty.

Performing step 604 and step 605 avoids a breakdown of the server 100when power is off, and further improves utilization of the power supply110 after the power module 111 is faulty.

FIG. 6 shows an internal structure of the power consumption managementdevice 500 in this method, and a specific structure is described above.The power consumption reduction management unit 511 is configured toreceive the fault information of the power module 111, and forward thefault information to each power consumption reduction subunit 512. Eachpower consumption reduction subunit 512 performs step 602 and step 603to rapidly reduce the power consumption of the server 100 within theholding time of the faulty power module 111. This ensures running of thenodes 512, namely, the server 100.

The power consumption reduction management unit 511 is furtherconfigured to forward the fault information to the power consumptioncapping management unit 521. The power consumption capping managementunit 521 is configured to receive fault information of the powerconsumption reduction management unit 511, and forward the faultinformation to each power consumption capping subunit 522. Each powerconsumption capping subunit 522 performs step 604 and step 605 toadjust, within the preset error range, the power consumption of eachnode 101 to the maximum power consumption that can be provided by thepower supply 110 when the power module 111 is faulty.

Similarly, constituent parts of the power consumption management device500 may be integrated into a chip or another hardware device, or may beindependent electronic components coupled in an electrical, mechanical,or other form, or two or more units may be integrated into one unit.This is not limited in this embodiment.

An embodiment further provides a power consumption management device700, as shown in FIG. 7. The power consumption management device 700includes an interface device 710 and a processor 720. The processor 720may include a CPU and a memory. There may be one or more CPUs. Theprocessor 720 may further be a field programmable gate array (FPGA), acombination of an FPGA and the CPU, or a combination of the CPU and aBIOS. This is not limited in this embodiment of the present application.The interface device 710 is configured to receive the fault informationof the power module 111. When a server 100 is a single-node server, theprocessor 720 is configured to perform step 302 and step 303. When theserver 100 is a multi-node server, the processor 720 is configured toperform step 602 to step 605.

An embodiment further provides a non-volatile readable storage medium.When a server 100 is a single-node server, the readable storage mediumincludes a first instruction used to perform step 301 and step 302 and asecond instruction used to perform step 303. When the server 100 is amulti-node server, the readable storage medium includes a firstinstruction used to perform step 603 to step 603 and a secondinstruction used to perform step 604 and step 605.

In the several embodiments provided in the present application, itshould be understood that the disclosed apparatuses and methods may beimplemented in other manners. For example, division of the unit in thedescribed apparatus embodiment is merely logical function division, ormay be other division during actual implementation. For example, aplurality of units or components may be combined or integrated intoanother system, or some features may be ignored or may not be performed.In addition, the displayed or discussed mutual couplings or directcouplings or communication connections may be implemented by using someinterfaces. The indirect couplings or communication connections betweenthe apparatuses or units may be implemented in an electrical manner, amechanical manner, or another manner.

What is claimed is:
 1. A power consumption management method,comprising: receiving, by a power consumption management device, faultinformation of a power module, wherein the power consumption managementdevice communicates with a server, and a power supply that suppliespower to the server comprises the power module; reducing, by the powerconsumption management device, first power consumption of the server bya first value to obtain second power consumption of the server, whereinthe first power consumption is a power consumption value of the serverdetermined during a period in which the power module works normally, andthe first value is not less than a reduced value of power consumption ofthe server, and the reduced value is determined during a period in whichthe power module is faulty; adjusting, by the power consumptionmanagement device, the second power consumption of the server based on apower consumption capping value of the server, wherein the powerconsumption capping value of the server is a difference between thefirst power consumption and the reduced value of the power consumptionof the server, wherein reducing the power consumption of the serverincludes pulling down Prochot and Memhot pins of a CPU; and in responseto a difference between the power consumption capping value of theserver and the power consumption of the server being greater than apreset error value, continuously adjust the power consumption of theserver, until the difference falls within a preset error range, so as toadjust the power consumption of the server to approximate to a maximumpower consumption provided by the power supply upon the power modulebeing faulty.
 2. The method according to claim 1, wherein the servercomprises a plurality of nodes, wherein the reducing the first powerconsumption of the server comprises: obtaining, by the power consumptionmanagement device, a reduced value of power consumption of each node;and reducing, by the power consumption management device, the powerconsumption of each node by a second value based on the reduced value ofthe power consumption of each node, wherein a sum of second values ofthe plurality of nodes is equal to the first value.
 3. The methodaccording to claim 2, wherein the adjusting the second power consumptionof the server comprises: obtaining, by the power consumption managementdevice, a power consumption capping value of each node, wherein the sumof the power consumption capping values of the plurality of nodes is thepower consumption capping value of the server; and adjusting, by thepower consumption management device, the power consumption of each nodebased on the power consumption capping value of each node.
 4. A powerconsumption management device, comprising: a processor, and a memory,storing processor-executable instructions which are executed by theprocessor and cause the device to perform operations including:receiving fault information of a power module, wherein the powerconsumption management device communicates with a server, and a powersupply that supplies power to the server comprises the power module;reducing, based on the fault information, first power consumption of theserver by a first value to obtain second power consumption of theserver, wherein the first power consumption is a power consumption valueof the server determined during a period in which the power module worksnormally, and the first value is not less than a reduced value of powerconsumption of the server, and the reduced value is determined during aperiod in which the power module is faulty; adjusting the second powerconsumption of the server based on the fault information and a powerconsumption capping value of the server, wherein the power consumptioncapping value of the server is a difference between the first powerconsumption and the reduced value of the power consumption of theserver, wherein reducing the power consumption of the server includespulling down Prochot and Memhot pins of a CPU; and in response to adifference between the power consumption capping value of the server andthe power consumption of the server being greater than a preset errorvalue, continuously adjusting the power consumption of the server, untilthe difference falls within a preset error range, so as to adjust thepower consumption of the server to approximate to a maximum powerconsumption provided by the power supply upon the power module beingfaulty.
 5. The power consumption management device according to claim 4,wherein the server comprises a plurality of nodes, wherein the processoris configured to: obtain a reduced value of power consumption of eachnode; and reduce the power consumption of each node by a second valuebased on the reduced value of the power consumption of each node,wherein a sum of the second values of the plurality of nodes is equal tothe first value.
 6. The power consumption management device according toclaim 5, wherein the processor is configured to: obtain a powerconsumption capping value of each node, wherein the sum of the powerconsumption capping values of the plurality of nodes is the powerconsumption capping value of the server; and adjust the powerconsumption of each node based on the power consumption capping value ofeach node.
 7. A non-transitory computer-readable storage medium, storingprocessor-executable instructions to be executed by a processor of apower consumption management device, wherein the instructions comprise:instruction for receiving fault information of a power module;instruction for reducing first power consumption of a server by a firstvalue to obtain second power consumption of the server, wherein theserver is powered by a power supply, the power supply comprises thepower module, and the power consumption management device communicateswith the server; and the first power consumption is a power consumptionvalue of the server determined during a period in which the power moduleworks normally, and the first value is not less than a reduced value ofpower consumption of the server, and the reduced value is determinedduring a period in which the power module is faulty; instruction foradjusting the second power consumption of the server based on a powerconsumption capping value of the server, wherein the power consumptioncapping value of the server is a difference between the first powerconsumption and the reduced value of the power consumption of theserver, wherein reducing the power consumption of the server includespulling down Prochot and Memhot pins of a CPU; and in response to adifference between the power consumption capping value of the server andthe power consumption of the server being greater than a preset errorvalue, instruction for continuously adjusting the power consumption ofthe server, until the difference falls within a preset error range, soas to adjust the power consumption of the server to approximate to amaximum power consumption provided by the power supply upon the powermodule being faulty.
 8. The non-transitory computer-readable storagemedium according to claim 7, wherein the server comprises a plurality ofnodes, wherein the instructions comprises: instruction for obtaining areduced value of power consumption of each node; and instruction forreducing the power consumption of each node by a second value based onthe reduced value of the power consumption of each node, wherein a sumof the second values of the plurality of nodes is equal to the firstvalue.
 9. The non-transitory computer-readable storage medium accordingto claim 8, wherein the instructions comprise: instruction for obtaininga power consumption capping value of each node, wherein the sum of thepower consumption capping values of the plurality of nodes is the powerconsumption capping value of the server; and instruction for adjustingthe power consumption of each node based on the power consumptioncapping value of each node.